<template>
   <div class="tabs-wrapper">
    <div class="wrapper-box03">
      <div class="login">
        <div class="login-logo">
          <div class="login-logo-img03"></div>
          欢迎使用-{{ underlineToHump(appStore.getTitle) }}
        </div>
        <div class="login-box03">
            <!-- 账号登录 -->
            <LoginForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
            <!-- 手机登录 -->
            <MobileForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
            <!-- 二维码登录 -->
            <QrCodeForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
            <!-- 注册 -->
            <RegisterForm class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
            <!-- 三方登录 -->
            <SSOLoginVue class="m-auto h-auto p-20px lt-xl:(rounded-3xl light:bg-white)" />
          <!--  底部  -->
          <!-- 侧栏 -->
          <div class="login-pic03"></div>
        </div>
        <!-- <div class="el-login-footer">
          Copyright © 2018-2023 ruoyi.vip All Rights Reserved.
        </div> -->
      </div>
    </div>
  </div>
</template>
<script lang="ts" setup>
import { underlineToHump } from '@/utils'

import { useDesign } from '@/hooks/web/useDesign'
import { useAppStore } from '@/store/modules/app'
import { ThemeSwitch } from '@/layout/components/ThemeSwitch'
import { LocaleDropdown } from '@/layout/components/LocaleDropdown'

import { LoginForm, MobileForm, QrCodeForm, RegisterForm, SSOLoginVue } from './components'

defineOptions({ name: 'Login' })

const { t } = useI18n()
const appStore = useAppStore()
const { getPrefixCls } = useDesign()
const prefixCls = getPrefixCls('login')
</script>

<style rel="stylesheet/scss" lang="scss">
.tabs-wrapper {
  width: 100%;
  height: 100%;
  background-color: #3269c2;
  .el-tabs__header {
    position: absolute;
    top: 16px;
    right: 20px;
    border-bottom: 0;

    .el-tabs__nav {
      border: 0;
    }

    .el-tabs__item {
      background-color: rgba(0, 0, 0, 0.4);
      border-radius: 4px;
      text-align: center;
      font-size: 14px;
      color: #ffffff;
      margin: 0 6px;
      border: 0;
      height: 36px;
      padding: 0px 16px;
      line-height: 36px;
    }
  }

  .el-tabs__content {
    width: 100%;
    height: 100%;

    .el-tab-pane {
      width: 100%;
      height: 100%;
    }
  }
}

.login {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  min-height: 750px;
  min-width: 1300px;
  /* background-image: url("../assets/images/login-background.jpg");
  background-size: cover; */
}

.title {
  margin: 0px auto 8px auto;
  text-align: left;
  font-size: 22px;
  font-weight: bold;
  color: #202329;
}

.other-text {
  font-size: 16px;
  color: #646a73;
  margin-bottom: 30px;
  display: inline-block;
}

.login-form {
  border-radius: 6px;
  background: #ffffff;
  width: 450px;
  margin: 0 auto;
  padding: 20px 30px;

  .el-form-item__label {
    font-size: 16px;
    line-height: 30px;
  }

  .el-input {
    height: 38px;

    input {
      height: 38px;
      border: 0;
      padding: 0;
    }
  }

  .input-icon {
    height: 39px;
    width: 14px;
    margin-left: 2px;
  }
}

.login-tip {
  font-size: 13px;
  text-align: center;
  color: #bfbfbf;
}

.login-code {
  width: 33%;
  height: 38px;
  position: relative;
  margin-top: -42px;
  float: right;
  text-align: right;

  img.login-code-img {
    cursor: pointer;
    vertical-align: middle;
    width: 95px;

  }
}

.el-login-footer {
  height: 60px;
  line-height: 60px;
  position: fixed;
  bottom: 0;
  right: 600px;
  left: 0px;
  text-align: center;
  color: #666666;
  font-size: 13px;
}

.side-bg {
  width: 600px;
  height: 100%;
  background: url("../assets/images/side-bg.png") no-repeat left top;
}

.login-tab {
  position: fixed;
  top: 16px;
  right: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.login-tab li {
  display: inline-block;
  padding: 0;
  margin: 0 7px;
}

.login-tab li a.login-tab-link {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 6px 16px;
  border-radius: 4px;
  display: block;
  font-size: 14px;
}

.side-bg .side-text {
  font-size: 30px;
  color: #ffffff;
  margin-top: 150px;
  font-weight: bold;
  display: block;
  text-align: center;
}

.side-bg .side-item {
  font-size: 20px;
  color: #ffffff;
  width: 350px;
  height: 150px;
  margin: 50px auto 0 150px;
  list-style: none;
  padding: 0;
}

.side-bg .side-item li {
  width: 50%;
  text-align: left;
  display: flex;
  align-items: center;
  float: left;
  margin: 8px 0;
}

.side-bg .side-item li i {
  font-size: 16px;
  margin-right: 5px;
}

.wrapper-box02 {
  .leftsidebg {
    width: 50%;
    height: 100%;
    background: url("../assets/images/side-leftbg.png") no-repeat left top;

    .side-text {
      font-size: 40px;
      margin: 230px auto 0;
      width: 500px;
    }

    .side-item {
      font-size: 20px;
      color: rgba(255, 255, 255, 0.8);
      width: 500px;
      height: 150px;
      margin: 50px auto 0;
      list-style: none;
      padding: 0;
    }

    .more-btn-box {
      width: 500px;
      margin: 60px auto 0;
    }

    .more-btn {
      background-color: #37b1e4;
      font-size: 22px;
      display: inline-block;
      padding: 12px 24px;
      color: #ffffff;
      border-radius: 6px;
    }
  }

  .login-form {
    width: 550px;
    padding: 0;

    .title {
      font-size: 36px;
      color: #3f4e5e;
      margin: 20px 0 10px;
    }

    .el-form-item {
      margin-bottom: 18px;
    }

    .el-input {
      height: 52px;
      margin: 5px 0;
    }

    .el-input input {
      border: 1px solid #e5e5e5;
      border-radius: 4px !important;
      padding: 5px 10px !important;
      height: 50px !important;
      font-size: 16px;
    }

    .login-code {
      margin-top: -52px;
      margin-right: 12px;
    }
  }

  .el-login-footer {
    width: 50%;
    right: 0;
    left: 50%;
  }
}

.wrapper-box03 {
  background-color: #3269c2;
  display: flex;
  justify-content: center;

  .login {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    min-height: 750px;
    min-width: 1300px;
  }

  .login-logo {
    width: 880px;
    display: flex;
    align-items: center;
    margin: 0px auto 40px;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;

    .login-logo-img03 {
      // background: url("../assets/logo/logo.png") no-repeat left top;
      width: 92px;
    height: 73px;
    margin-right: 8px;
    background-size: 91px 80px;
      margin-right: 8px;
    }

  }

  .login-box03 {
    background: #ffffff;
    border-radius: 8px;
    width: 880px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d !important;

    .login-form {
      width: 420px;
      padding: 20px;
      margin: 0;
    }

    .el-input {
      height: 48px;
    }

    .login-text {
      text-align: center;
      padding: 0 0 30px;
      margin-top: 0;
      font-size: 32px;
      font-weight: bold;
    }

    .el-input input {
      padding: 5px 18px !important;
      height: 50px !important;
      font-size: 16px;
    }

    .login-code {
      margin-top: -43px;
      margin-right: 16px;
    }

    .login-pic03 {
      background: url("../../assets/images/login-pic03.png") no-repeat left top;
      width: 404px;
      height: 230px;
    }
  }

  .el-login-footer {
    right: 0;
    left: 0;
    color: #ffffff;
  }
}
</style>

